﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hands.Unit.Security
{
    public interface ISecurity
    {
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="text">需要加密的原文</param>
        /// <returns>加密后的密文</returns>
        string encryption(string text);

        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="ciphertext">需要解密的密文</param>
        /// <returns>解密后的原文</returns>
        string decryption(string ciphertext);
    }
}
